Integrand size = 24, antiderivative size = 170 \[ \int \frac {(e+f x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx=-\frac {(e+f x)^2}{2 b f}+\frac {(e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d}+\frac {(e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d}+\frac {f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d^2}+\frac {f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d^2} \]
[Out]
Time = 0.17 (sec) , antiderivative size = 170, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {5680, 2221, 2317, 2438} \[ \int \frac {(e+f x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d^2}+\frac {f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d^2}+\frac {(e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b d}+\frac {(e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b d}-\frac {(e+f x)^2}{2 b f} \]
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 5680
Rubi steps \begin{align*} \text {integral}& = -\frac {(e+f x)^2}{2 b f}+\int \frac {e^{c+d x} (e+f x)}{a-\sqrt {a^2+b^2}+b e^{c+d x}} \, dx+\int \frac {e^{c+d x} (e+f x)}{a+\sqrt {a^2+b^2}+b e^{c+d x}} \, dx \\ & = -\frac {(e+f x)^2}{2 b f}+\frac {(e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d}+\frac {(e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d}-\frac {f \int \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right ) \, dx}{b d}-\frac {f \int \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right ) \, dx}{b d} \\ & = -\frac {(e+f x)^2}{2 b f}+\frac {(e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d}+\frac {(e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d}-\frac {f \text {Subst}\left (\int \frac {\log \left (1+\frac {b x}{a-\sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b d^2}-\frac {f \text {Subst}\left (\int \frac {\log \left (1+\frac {b x}{a+\sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b d^2} \\ & = -\frac {(e+f x)^2}{2 b f}+\frac {(e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d}+\frac {(e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d}+\frac {f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d^2}+\frac {f \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d^2} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 157, normalized size of antiderivative = 0.92 \[ \int \frac {(e+f x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx=\frac {-d (e+f x) \left (d e+d f x-2 f \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )-2 f \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )+2 f^2 \operatorname {PolyLog}\left (2,\frac {b e^{c+d x}}{-a+\sqrt {a^2+b^2}}\right )+2 f^2 \operatorname {PolyLog}\left (2,-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{2 b d^2 f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(411\) vs. \(2(156)=312\).
Time = 1.47 (sec) , antiderivative size = 412, normalized size of antiderivative = 2.42
method | result | size |
risch | \(-\frac {f \,x^{2}}{2 b}+\frac {e x}{b}-\frac {2 e \ln \left ({\mathrm e}^{d x +c}\right )}{d b}+\frac {e \ln \left (b \,{\mathrm e}^{2 d x +2 c}+2 a \,{\mathrm e}^{d x +c}-b \right )}{d b}-\frac {f \,c^{2}}{d^{2} b}+\frac {f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b}+\frac {f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b}+\frac {2 c f \ln \left ({\mathrm e}^{d x +c}\right )}{d^{2} b}-\frac {c f \ln \left (b \,{\mathrm e}^{2 d x +2 c}+2 a \,{\mathrm e}^{d x +c}-b \right )}{d^{2} b}+\frac {f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d b}+\frac {f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d b}+\frac {f \operatorname {dilog}\left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b}+\frac {f \operatorname {dilog}\left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b}-\frac {2 c f x}{d b}\) | \(412\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 380 vs. \(2 (154) = 308\).
Time = 0.26 (sec) , antiderivative size = 380, normalized size of antiderivative = 2.24 \[ \int \frac {(e+f x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx=-\frac {d^{2} f x^{2} + 2 \, d^{2} e x - 2 \, f {\rm Li}_2\left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) - 2 \, f {\rm Li}_2\left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) - 2 \, {\left (d e - c f\right )} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) + 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) - 2 \, {\left (d e - c f\right )} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) - 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) - 2 \, {\left (d f x + c f\right )} \log \left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right ) - 2 \, {\left (d f x + c f\right )} \log \left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right )}{2 \, b d^{2}} \]
[In]
[Out]
\[ \int \frac {(e+f x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx=\int \frac {\left (e + f x\right ) \cosh {\left (c + d x \right )}}{a + b \sinh {\left (c + d x \right )}}\, dx \]
[In]
[Out]
\[ \int \frac {(e+f x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )} \cosh \left (d x + c\right )}{b \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
\[ \int \frac {(e+f x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )} \cosh \left (d x + c\right )}{b \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x) \cosh (c+d x)}{a+b \sinh (c+d x)} \, dx=\int \frac {\mathrm {cosh}\left (c+d\,x\right )\,\left (e+f\,x\right )}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \]
[In]
[Out]